#@adminLayout()
#define main()
<div class="jbolt_page" data-key="#(pmkey)"  >
    <div class="jbolt_page_title">
        <div class="row">
            <div class="col-4">
                <h1>分销商审查表</h1>
                <span> #(pageData.totalRow?? 0) 条记录</span>
            </div>
            <div class="col-5">
                <form class="form-inline" id="memberFormIndex" action="/auth/mall/spreader"  data-pjaxsubmit  method="get">
                    <input type="text" autocomplete="off"  class="form-control"  placeholder="输入关键字搜索" id="keywords" name="keywords" value="#(keywords??)" />

                    <button  type="submit" class="btn btn-light" ><i class="fa fa-search"></i> 查询</button>
                    <button  onclick="TestOrderreset()" data-handler="reloadCurrentPage" class="btn btn-light" ><i class="fa fa-refresh"></i> 重置</button>
                </form>
            </div>
        </div>
    </div>
    <div class="jbolt_page_content">
        <div class="table-responsive">
            <table class="table table-bordered table-hover table-striped table-center">
                <thead>
                <tr>
                    <th style="width: 60px">序号</th>
                    <th style="width: 100px">姓名</th><th style="width: 100px">手机</th>
                    <th style="width: 100px">状态</th>
                    <th  style="width: 100px">审查时间</th><th  style="width: 100px">操作人</th>
                    <th  style="width: 150px">申请原因</th><th  style="width: 150px">拒绝原因</th>
                    <th  style="width: 100px">申请时间</th><th style="width: 80px">积分</th>
                    <th  style="width: 80px">分销收益总额</th>
                    <th  style="width: 50px">分销二维码</th>
                    <th style="width: 60px">操作</th>

                </tr>
                </thead>
                <tbody>
                #if(pageData)
                #for(data:pageData.list)
                <tr>
                    <td>#(for.index+1)</td>
                    <td>#(data.name??)</td>
                    <td>#(data.mobile??)</td>
                    <td>#(MyUtil.get_spreader_audited(data.audited??))</td>
                    <td>#(MyUtil.get_date(data.audit_time??))</td>
                    <td>#(data.operator??)</td>
                    <td>#(data.why_apply??)</td>
                    <td>#(data.turn_down_reason??)</td>
                    <td>#(MyUtil.get_date(data.apply_time??))</td>
                    <td>#(data.credit??)</td>
                    <td>#(data.commission??)</td>


                    <td><div  style="width:120px;margin:0px auto;"><img class="j_goodslist_mainimg" style="width: 120px"  data-photobtn tooltip data-title="点击查看大图"  src="#realImage(data.media_url??,'/assets/img/uploadimg.png')"/>  </div>
                    </td>

                    <td>
                        #if(data.audited!=1)
                        <a  tooltip  title="通过"  href="/auth/mall/spreader/pass_spreader/#(data.member_id)" data-handler="refreshPjaxContainer" data-confirm="确定通过此分销商?" class="jbolt_table_delbtn"> <i class="fa fa-check mr-2"></i></a>
                        #end
                        #if(data.audited!=2 )
                        <a  tooltip data-title="拒绝" data-jboltlayertrigger data-confirm href="/auth/mall/spreader/turn_down_reason/#(data.member_id)" data-width="500" > <i class="fa fa-remove c-danger"></i> </a>
                        #end
                    </td>





                </tr>
                #end
                #end
                </tbody>
            </table>
        </div>
        #include("/_view/_admin/common/_page.html",pageEleId="memberPageIndex")
    </div>
</div>
</div>
</div>
#end
#define js()
<script type="text/javascript">

    var memberFormIndex=$("#memberFormIndex");

    $(function(){
        initPage("memberPageIndex",#(pageData.totalPage??),#(pageData.pageNumber??),"memberFormIndex");
    });


    /**
     * 普通查询
     */
    function normaMemberlData(){
        memberFormIndex.find("[name='isDelete']").val(false);
        memberFormIndex.submit();
    }

    function TestOrderreset() {
        document.getElementById("keywords").value="";
        document.getElementById("changeTime").value="";
    }



</script>



#end

